"""
@name : 04.使用自定义线程类
@author : wenyao
@projectname: xsfh
"""
import threading

class MyThread(threading.Thread):
    def __init__(self, num):
        super().__init__()
        self.num = num
    def run(self):
        print(f"running on numbers: {self.num}")
t1 = MyThread(1)
t2 = MyThread(2)
t1.start()
t2.start()

